import request from '@/utils/request'

/**
 * 登录用户
 * @returns 
 */
export function login(data) {
  return request({
    url: '/core/login',
    method: 'post',
    data
  })
}
/**
 * 获取用户信息
 * @returns 
 */
export function getInfo() {
  return request({
    url: '/core/getInfo',
    method: 'get'
  })
}

export function logout() {
  return request({
    url: '/core/logout',
    method: 'post'
  })
}

/**
*  获取动态路由
*/
export function getMoveRouter(params) {
  return request({
    url: '/core/login',
    method: 'get',
    params
  })
}